<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>葫芦网</title>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        body{background-color: #dddddd}
        .navbar{
            background-color: #ffcccc;
            border: 0;
            margin-top: 10px;
        }
        .navbar-brand>img{
            position: relative;
            bottom: 10px;
            width: 40px;

        }
        .navbar-default .navbar-nav>li>a:hover{
            color: #ffc600;
        }
        form>input{
            background-color: #bbffee;
            height: 30px;
            border: 0;
            border-radius: 30px;
            padding: 10px 20px;
            /*去掉外边框*/
            outline: 0;
            color: #a8a8a8;
            margin-top: 10px;
        }
        form>button{
            background-color: rgba(0,0,0,0);
            border: 0;
            color: #a8a8a8;
            position: relative;
            right: 40px;
        }
        /*轮播图相关样式*/
        #myCarousel{
            width: 700px;
            left: 140px;
        }
        /*悬浮窗相关干样式*/
        #xuanfu1{
            position: absolute;
            top: -820px;
            right: -860px;
        }
        /*分类相关样式*/
        #fenlei{
            position: absolute;
            top: 79px;
        }
        /*瀑布流相关样式*/
        .grid-item{
            width: 218px;/*瀑布流中每个元素的宽度为218*/
            margin: 0 12px 12px 0;
            float: left;
        }
        .list-group-item{
            background-color: #e8ccff;
            color: #cc00cc;
            border: 0;
            width: 280px;
        }
        .list-head{
            background-color: #ffddaa;
            color: black;
        }
        .well{
            color: #ffc600;
            background-color: #2e2e2e;
            font-weight: bold;
            border: 0;
            text-align: center;
        }
        /*动画相关*/
        img{
            transition-duration: 2s;/*设置动画持续时间2秒*/
        }
        img:hover{
            transform: scale(1.2);/*缩放到1.2倍*/
        }
        .grid-item{
            overflow: hidden;/*动画缩放时超出问题*/
        }
    </style>
</head>
<body>
<header class="container">
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">
                    <img alt="Brand" src="./logo.jpg">
                </a>
            </div>
            <!--分类开始-->
            <ul class="nav navbar-nav">
                <li><a href="#">首页</a></li>
                <li><a href="#">品牌</a></li>
                <li><a href="#">商家入驻</a></li>
                <li><a href="#">新闻中心</a></li>
                <li><a href="#">公告</a></li>
                <li>
                    <form action="">
                        <input type="text" placeholder="亲点我搜索哦..">
                        <button><i class="fa fa-search"></i></button>
                    </form>
                </li>
            </ul>
            <!--分类结束-->
            <ul class="nav navbar-nav navbar-right">
                <li><a href="">亲,这里登录哦</a></li>
                <li><a href="">免费注册</a></li>
            </ul>
        </div>
    </nav>
</header>
<section class="container">
    <!--轮播图开始-->
    <div id="myCarousel" class="carousel slide">
        <!-- 轮播（Carousel）指标 -->
        <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>
            <li data-target="#myCarousel" data-slide-to="2"></li>
        </ol>
        <!-- 轮播（Carousel）项目 -->
        <div class="carousel-inner">
            <div class="item active">
                <img src="./lun.png" alt="First slide">
                <div class="carousel-caption"></div>
            </div>
            <div class="item">
                <img src="./lun.png" alt="Second slide">
                <div class="carousel-caption"></div>
            </div>
            <div class="item">
                <img src="./lun.png" alt="Third slide">
                <div class="carousel-caption"></div>
            </div>
        </div>
        <!-- 轮播（Carousel）导航 -->
        <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>
    <!--轮播图结束-->
    <div id="fenlei">
        <span><a href="">女装|</a></span>
        <span><a href="">内衣|</a></span>
        <span><a href="">家具</a></span><br>
        <span><a href="">女鞋|</a></span>
        <span><a href="">男鞋|</a></span>
        <span><a href="">箱包</a></span><br>
        <span><a href="">母婴|</a></span>
        <span><a href="">童装|</a></span>
        <span><a href="">玩具</a></span><br>
        <span><a href="">男装|</a></span>
        <span><a href="">运动户外</a></span><br>
        <span><a href="">美妆|</a></span>
        <span><a href="">彩妆|</a></span>
        <span><a href="">个护</a></span><br>
        <span><a href="">手机|</a></span>
        <span><a href="">数码|</a></span>
        <span><a href="">企业</a></span><br>
        <span><a href="">大家电|</a></span>
        <span><a href="">生活电器</a></span><br>
        <span><a href="">零食|</a></span>
        <span><a href="">生鲜|</a></span>
        <span><a href="">茶酒</a></span><br>
        <span><a href="">厨具|</a></span>
        <span><a href="">收纳|</a></span>
        <span><a href="">清洁</a></span><br>
        <span><a href="">家纺|</a></span>
        <span><a href="">家饰|</a></span>
        <span><a href="">鲜花</a></span><br>
        <span><a href="">图书音像|</a></span>
        <span><a href="">文具</a></span><br>
        <span><a href="">医药保健|</a></span>
        <span><a href="">进口</a></span><br>
        <span><a href="">汽车|</a></span>
        <span><a href="">二手车|</a></span>
        <span><a href="">用品</a></span><br>
        <span><a href="">房产|</a></span>
        <span><a href="">装修家居|</a></span>
        <span><a href="">建材</a></span><br>
        <span><a href="">手表|</a></span>
        <span><a href="">眼镜|</a></span>
        <span><a href="">珠宝饰品</a></span>
    </div>
    <div class="row" style="margin-top: 10px">
        <div>
            <h2>有好货</h2>
            <!--瀑布流开始-->
            <div class="grid">
                <div class="grid-item">
                    <a href="">
                    <img src="./commodity1.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                    <img src="./commodity2.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity1.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity2.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity1.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity2.jpg" class="img-responsive">
                    </a>

                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity1.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity2.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity1.jpg" class="img-responsive">
                    </a>
                </div>
                <div class="grid-item">
                    <a href="">
                        <img src="./commodity2.jpg" class="img-responsive">
                    </a>
                </div>
            </div>
            <!--瀑布流结束-->
        </div>
        <div class="col-md-3">
            <!--浏览最多开始-->
            <ul class="list-group" id="xuanfu1">
                <li class="list-group-item list-head">
                    <h4><i class="fa fa-eye">浏览最多</i></h4>
                </li>
                <li class="list-group-item">
                    <!-- 左对齐 -->
                    <div class="media">
                        <div class="media-left">
                            <img src="../laiya.jpg" class="media-object" style="width:60px;height: 50px">
                        </div>
                        <div class="media-body">
                            <h4 class="media-heading">左对齐</h4>
                            <p>这是一些示例文本...</p>
                        </div>
                    </div>
                </li>
                <li class="list-group-item">
                    <!-- 左对齐 -->
                    <div class="media">
                        <div class="media-left">
                            <img src="../laiya1.jpg" class="media-object" style="width:60px;height: 50px">
                        </div>
                        <div class="media-body">
                            <h4 class="media-heading">左对齐</h4>
                            <p>这是一些示例文本...</p>
                        </div>
                    </div>
                </li>
                <li class="list-group-item">
                    <!-- 左对齐 -->
                    <div class="media">
                        <div class="media-left">
                            <img src="../laiya2.jpg" class="media-object" style="width:60px;height: 50px">
                        </div>
                        <div class="media-body">
                            <h4 class="media-heading">左对齐</h4>
                            <p>这是一些示例文本...</p>
                        </div>
                    </div>
                </li>
            </ul>
            <!--浏览最多结束-->
        </div>
    </div>
</section>
<footer class="container">
    <div class="well">
        Copyright © 北京达内金桥科技有限公司版权所有 京ICP备12003709号-3 京公网安备 11010802029572号
    </div>
</footer>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<!--引入瀑布流相关框架文件-->
<!--引入图片加载完成框架-->
<script src="js/imagesloaded.pkgd.js"></script>
<script src="js/masonry.pkgd.min.js"></script>
<script>
    $('#myCarousel').carousel('cycle')
    //瀑布流初始化操作
    $(".grid").masonry({
        itemSelection:".grid-item",  //告诉masonry框架如何找到瀑布流中的元素
        columnWidth:210              //设置每列宽度(210=200+10)
    })
    //添加图片加载完成事件解决图片层叠问题
    $(".grid").imagesLoaded().progress(function () {
        //图片加载完成后会执行这里的代码
        $(".grid").masonry("layout");//让瀑布流重新计算每个图片应该在的位置
    })

</script>
</body>
</html>